package org.wuxinshui.regex;

import java.util.regex.Pattern;

public class RegexDemo {
    public final static String BUSINESS_LICENSE_REGEX = "^[\\u4e00-\\u9fa5]+$";
    public final static Pattern pattern = Pattern.compile(BUSINESS_LICENSE_REGEX);

    public static void main(String[] args) {
        System.out.println(pattern.matcher("保险"));
        System.out.println(pattern.matcher("！保险"));
        System.out.println(pattern.matcher("保险-"));
        System.out.println(pattern.matcher("1保险"));
        System.out.println(pattern.matcher("1保险c"));
        System.out.println(pattern.matcher("d保险"));
        System.out.println(pattern.matcher("C保险"));
    }
}
